import request from '../../../../../../public/js/common/api/api.js';

const salaryUrl = Utils.CurDomain.Salary;
// const salaryUrl = "http://172.10.254.67:18200/api";
const configuration = {
    contentType: 'application/json',
    dataType: 'json',
    async: true,
    dataFilter(data, type) {
        return data;
    }
}

/**
 * @file神农工资条API
 */
export default class PayRollsAPI {
    // 查询个人工资条
    static seachPayRolls(data) {
        return request.post(`${salaryUrl}/payrolls/plist`,data);
    }
    // 查询工资条详情
    static queryPayRollsInfo(Y, M, F, id) {
        return request.get(`${salaryUrl}/payrolls/${Y}/${M}/${F}/${id}`);
    }
	
	// 查询用户信息
	static queryUserName(sid) {
	    return request.get(`${Utils.CurDomain.WechatUrl}/wxauths/cur?sid=${sid}`);
	}
}